package entity;

import java.util.Date;

public class Reader {
    private String readerid;
    private int type;
    private String typeName;
    private String name;
    private int age;
    private String sex;
    private String phone;
    private String dept;
    private Date regdate;

    public String getReaderid() {
        return readerid;
    }

    public void setReaderid(String readerid) {
        this.readerid = readerid;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getDept() {
        return dept;
    }

    public void setDept(String dept) {
        this.dept = dept;
    }

    public Date getRegdate() {
        return regdate;
    }

    public void setRegdate(Date regdate) {
        this.regdate = regdate;
    }

    public Reader() {
    }

    public Reader(String readerid, int type, String name, int age, String sex, String phone, String dept, Date regdate) {
        this.readerid = readerid;
        this.type = type;
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.phone = phone;
        this.dept = dept;
        this.regdate = regdate;
    }

    @Override
    public String toString() {
        return "Reader{" +
                "readerid='" + readerid + '\'' +
                ", type=" + type +
                ", typeName='" + typeName + '\'' +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                ", phone='" + phone + '\'' +
                ", dept='" + dept + '\'' +
                ", regdate=" + regdate +
                '}';
    }
}
